<script>
export default {
	onLaunch: function() {
		let token = uni.getStorageSync('token');
		if (token) {
			uni.reLaunch({
				url: '/pages/agent/index'
			});
		}
		// var timer_id = 0;
		// if (typeof window != 'undefined') {
		// if (window.innerWidth > 750) {
		// window.innerWidth = 750;
		// timer_id = setInterval(function() {
		// //适配尺寸
		// var el = document.querySelector('html');
		// var n = Number(el.style.fontSize.replace('px', ''));
		// if (n > 30) {
		// el.style.fontSize = '30px';
		// clearInterval(timer_id);
		// }
		// }, 100);
		// }
		// }
	},
	onShow: function() {},
	onHide: function() {}
};
</script>

<style lang="scss">
@import 'static/style/index.scss';
/*每个页面公共css */
page {
	width: 100%;
	height: 100%;
	color: #333333;
}
@media screen and (min-width: 800px) {
	html {
		--window-left: calc((100% - 800px) / 2) !important;
		--window-right: calc((100% - 800px) / 2) !important;
	}
	page {
		max-width: 800px !important;
		margin: auto;
		overflow: hidden;
	}
	.container{
		position: relative;
		padding-left: 20rpx;
		padding-right: 20rpx;
	}
}
</style>
